//
//  HistoryTrackVC.m
//  GaoDeMap
//
//  Created by mac on 16/7/4.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "HistoryTrackVC.h"
#import "Conster.h"
@implementation HistoryTrackVC
-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    // Do any additional setup after loading the view, typically from a nib.
    //配置用户Key
    
   
    self.mapView.delegate = self;
    self.mapView.mapType = MAMapTypeStandard;
    self.mapView.language = MAMapLanguageZhCN;
    self.mapView.showTraffic = NO;
    self.mapView.scrollEnabled = YES;
    self.mapView.zoomEnabled = YES;
//    self.mapView.logoSize = CGSizeMake(40, 40);
    self.mapView.showsCompass = YES;
    self.mapView.compassOrigin = CGPointMake(100, KnavigationHight + 10);
    self.mapView.showsScale = YES;
    self.mapView.scaleOrigin = CGPointMake(100, KnavigationHight +100);
    self.mapView.zoomLevel = 11;
//
    self.mapView.showsUserLocation = YES;
    
    self.mapView.userTrackingMode = MAUserTrackingModeFollow;
    
    
    [self.view addSubview:self.mapView];
}


- (void)viewDidLoad{
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
}

#pragma mark - Lazy

- (MAMapView *)mapView{
    if (!_mapView) {
        _mapView = [[MAMapView alloc] initWithFrame:CGRectMake(0, KnavigationHight, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds) - KnavigationHight)];
    }
    return _mapView;
}
@end
